package com.mac.bluetoothbt.feature;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

public class WriteWithCallback implements Serializable {
    byte[] data;
    int flag = -1;

    public byte[] getData() {
        return data;
    }

    public int getFlag() {
        return flag;
    }

    public WriteWithCallback(byte[] data, int flag) {
        this.data = data;
        this.flag = flag;
    }

    public WriteWithCallback(byte[] data) {
        this.data = data;
    }

    boolean isWriteEnd() {
        if (flag == WRITE_END) {
            return true;
        }
        return false;
    }
    static final int WRITE_END = 1;
}
